/*
 * Copyright 2011 Carnegie Mellon University
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package edu.cmu.lti.ritesdk;

import java.util.ArrayList;
import java.util.List;

/**
 * Defines tasks, with some parameters such as labels. 
 * 
 * @author Hideki Shima
 */
public enum Task {

  // BC subtask
  BC(new String[]{"Y","N"}),
  EXAM(new String[]{"Y","N"}), //Same as BC
  RITE4QA(new String[]{"Y","N"}), //Same as BC
  // MC subtask
  MC(new String[]{"F","R","B","C","I"});
  
  private List<String> labels;
  
  private Task(String[] labelArray) {
    labels = new ArrayList<String>(labelArray.length);
    for ( String label : labelArray ) {
      labels.add(label);
    }
    labels.add(Evaluator.INVALID_LABEL); // OTHER illegal labels from system go here
  }
  
  public List<String> getDefinedLabels() {
    return labels;
  }
  
}
